Repository navigation
feat(core): ingest queued sources in parallel - #63
Conversation
|
Thanks a lot @jonxsong, this is an excellent PR, and thanks for the clear write-ups on #7 and #15 too. 🙏 I've read the whole diff and run the suite on One small, non-blocking note: CI for fork PRs needs a maintainer to approve the run. That's on me now, and I'll merge this one first and then #64 as soon as it's green. I'd love to have you in the official Openapi® contributors registry: https://github.com/openapi/contributors It only takes a minute:
[](https://github.com/openapi/contributors)You'd be very welcome there. Thank you! 🚀 |
What and why
Queued ingestion waits for each source's analysis before starting the next. Remote model requests account for much of that wait. This change runs up to two source analyses at a time by default and accepts project settings of one to three workers.
Approach
Regression and acceptance tests
911ee0e, the controlled provider peaked at one active call and the configurable worker setting was absent. The originalmax_jobsand restart control passed.Verification
python -m pytest -qon Linux with Python 3.12 passed all 65 tests on upstream and all 73 with this change. Windows passed 72 tests and reproduced upstream's existing POSIX file-mode assertion failure.make test,make check, AppStream validation, desktop-file validation, Debian package build and installation, and the installed core import passed in Ubuntu 24.04. The validators used Linux line endings for the Windows checkout's copied build and desktop files.python -m build --no-isolation --outdir dist/issue15 .andbuild-aux/pypi/build.sh dist/issue15/mcpproduced wheels and source distributions.git diff --checkpassed. The optional RuffFcheck reported the same six diagnostics as upstream in the files reviewed.make start-flatpakdisplayed a synthetic project inside the Flathuborg.gnome.Platform//51runtime on WSL2. A second smoke test inside the same runtime verified the catalog error toast, retry after reopening, both rebuilt files, no replay, and preservation ofingestion_workers=3when saving Preferences. The runtime reported GTK 4.24.1 and libadwaita 1.10.0.Compatibility
The worker setting is optional, existing sources and jobs keep their persisted formats, and offline analysis uses the same heuristics. The publication lock covers drains sharing an open
Projectinstance. Concurrent mutations from independently opened project handles remain outside that lock. Provider verification used synthetic data and mocked or local providers.Closes #15
AI assistance
Powered by OpenAI Codex: implementation and testing.
Checklist
make testpasses